<extend name="Common@Base/layout"/>
<block name="body">
    <div class="home-main">
        <div class="container-fluid">
            <div class="row employee-top">
                <div class="col-sm-6">
                    <include file="Home/Public/userpanel"/>
                </div>
                <div class="col-sm-6">
                    <include file="Home/Public/notice"/>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="panel panel-default panel-home-table">
                        <div class="panel-body">
                            <h4 class="home-title">部门业绩 (<?php echo date('Y年m月', time()); ?>)

                            </h4>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover table-end">
                                <thead>
                                <tr>
                                    <th>名称</th>
                                    <th class="text-right">电话量</th>
                                    <th class="text-right">跟进客户数</th>
                                    <th class="text-right">签约客户数</th>
                                    <th class="text-right">新增客户数</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr style="font-weight: 800">
                                    <td><?php echo $depart['name']?></td>
                                    <td class="text-right">{$sum_depart_count.sum_phone_count}</td>
                                    <td class="text-right">{$sum_depart_count.sum_follow_count}</td>
                                    <td class="text-right">{$sum_depart_count.sum_signed_count}</td>
                                    <td class="text-right">{$sum_depart_count.sum_add_count}</td>
                                </tr>
                                <volist name="depart_count" id="item">
                                    <tr class="focus">
                                        <td>{$item.uid|fc_get_user_name}</td>
                                        <td class="text-right">{$item.phone_count}</td>
                                        <td class="text-right">{$item.follow_count}</td>
                                        <td class="text-right">{$item.signed_count}</td>
                                        <td class="text-right">{$item.add_count}</td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <!--<div class="row">-->
            <!--<div class="col-sm-12">-->
            <!--<include file="Home/Public/saletop"/>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <script src="__PUBLIC__/Common/js/jquery.imagescroll.js"></script>
    <script>
        $(document).ready(function () {
            $('.home-x-roll').imageScroller();
        })
    </script>
    <include file="Home/Public/script"/>
</block>